package com.pdg.mcplugin.tfbal;

import org.bukkit.command.CommandSender;

import com.pdg.mcplugin.common.deprecated.DeprecatedPermissionCheckerBase;

public class PermissionChecker extends DeprecatedPermissionCheckerBase<TFBAL> {

	private static final String AVOID = "tfbal.avoid";

	public PermissionChecker(TFBAL thePlugin) {
		super(thePlugin);
		this.setDefault(AVOID, false);
	}
	
	public boolean checkAvoidPermission(CommandSender theCommandSender){
		return checkPermission(theCommandSender, AVOID);
	}

	@Override
	protected boolean shouldSuppressNoPermissionMessages(
			String thePermissionName) {
		return true;
	}

}
